package org.unt.logic;

import org.junit.Test;
import org.unt.genlogic.Files;

public class JUnitFiles {

	@Test
	public void testFiles() {

		String[] projects = Files.readFileAsString("E:\\java\\test\\projects.txt").split(" ");

		StringBuffer buf1 = new StringBuffer();
		StringBuffer buf2 = new StringBuffer();

		for (int i = 0; i < projects.length; i++) {
			buf1.append("http://jip.inetpsa.com/projects/" + projects[i] + "\r\n");
			buf2.append(projects[i] + "\r\n");
		}

		Files.writeToFile(buf1.toString(), "E:\\java\\test\\projects2.txt");
		Files.writeToFile(buf2.toString(), "E:\\java\\test\\projects3.txt");
	}
}
